package io.renren.modules.hospital.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;

import io.renren.modules.hospital.dao.EmrKsInfoDao;
import io.renren.modules.hospital.entity.EmrKsInfoEntity;
import io.renren.modules.hospital.service.EmrKsInfoService;


@Service("emrKsInfoService")
public class EmrKsInfoServiceImpl extends ServiceImpl<EmrKsInfoDao, EmrKsInfoEntity> implements EmrKsInfoService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        //单独设置分页大小为20
        params.put("limit","20");
        IPage<EmrKsInfoEntity> page = this.page(
                new Query<EmrKsInfoEntity>().getPage(params),
                new QueryWrapper<EmrKsInfoEntity>()
        );

        return new PageUtils(page);
    }

}
